package com.apiit.webserviceclient.activities;

import com.apiit.webserviceclient.R;
import com.apiit.webserviceclient.R.layout;
import com.apiit.webserviceclient.R.menu;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.TextView;

public class MyCourses extends Activity {

	ArrayAdapter<String> ad;
	TextView course1, course2;
	

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_my_courses);

//		String[] myStrings = new String[] { "Elem1", "Elem2", "Elem3", "Elem4",
//				"Elem5", "xxx", "yyyy", "zzzzz", "rrrrr", "fffff", "aaaaa" };
//		mycourselist = (ListView) findViewById(R.id.listmyCourses);
//		ad = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1);
//		for (int i = 0; i < myStrings.length; i++) {
//			ad.add(myStrings[i]);
//			ad.notifyDataSetChanged();
//		}

	//	mycourselist.setAdapter(ad);
		
		course1 = (TextView) findViewById(R.id.txtcourese1);
		course2 = (TextView) findViewById(R.id.txtcourese2);
		
		Intent intename = getIntent();
		String courseval1 = intename.getStringExtra("course1");
		String courseval2 = intename.getStringExtra("course2");
		
		course1.setText(courseval1);
		course2.setText(courseval2);

	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.my_courses, menu);
		return true;
	}

}
